package com.xian.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xian.common.annotation.Excel;
import com.xian.common.core.domain.BaseEntity;

/**
 * 诗词精选对象 tb_poetry
 * 
 * @author Hanys
 * @date 2025-04-09
 */
public class Poetry extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识符 */
    private Long id;

    /** 诗的标题 */
    @Excel(name = "诗的标题")
    private String title;

    /** 诗的作者 */
    @Excel(name = "诗的作者")
    private String author;

    /** 诗的内容 */
    @Excel(name = "诗的内容")
    private String content;

    /** 诗的描述 */
    @Excel(name = "诗的描述")
    private String description;

    /** 创作背景 */
    @Excel(name = "创作背景")
    private String background;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setBackground(String background) 
    {
        this.background = background;
    }

    public String getBackground() 
    {
        return background;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("author", getAuthor())
            .append("content", getContent())
            .append("description", getDescription())
            .append("background", getBackground())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
